﻿<UserControl x:Class="WPG.Themes.TypeEditors.BrushEditorControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" HorizontalContentAlignment="Left" Name="myUserCtl">
    <StackPanel>
        <Border Name="showCol" Margin="2,1,0,0" BorderThickness="1" BorderBrush="Black" Background="White" MouseDown="showCol_MouseDown" MouseUp="Click" Cursor="Hand">
            <Rectangle Width="30" Height="11" Fill="{Binding Brush,ElementName=myUserCtl}" MouseUp="Click" MouseDown="showCol_MouseDown" Name="myCtl" Cursor="Hand"></Rectangle>           
        </Border>
        <Border Name="doNothing"  Margin="2,1,0,0" BorderThickness="1" BorderBrush="Black" Background="White" Cursor="Hand" Visibility="Collapsed">
            <Rectangle Width="30" Height="11" Fill="{Binding Brush,ElementName=myUserCtl}" Cursor="Hand"></Rectangle>
        </Border>
    </StackPanel>
</UserControl>
